

package com.maoshi.shop.mp.comment.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName( "tz_weixin_subscribe")
@Data
public class WeixinSubscribe  implements Serializable {

    @TableField
    private Integer id;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 消息类型 me.chanjar.weixin.common.api.WxConsts.KefuMsgType
     */
    private String msgType;

    /**
     * 素材id
     */
    private String mediaId;

    /**
     * 发送顺序
     */
    private Integer seq;

    /**
     * 文本内容
     */
    private String content;

    @TableField(exist = false)
    private WeixinMaterial weixinMaterial;
}
